package com.travel.model.dto.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
//错误响应对象 状态码 错误消息 错误详情
@Data
@Schema(description = "Error Response")
public class ErrorResponse {
    @Schema(description = "Error status code", example = "400")
    private int status;

    @Schema(description = "Error message", example = "Bad Request")
    private String message;

    @Schema(description = "Detailed error description")
    private String details;

    @Schema(description = "Error timestamp")
    private LocalDateTime timestamp = LocalDateTime.now();
} 